package vip.ola.service.impl;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import vip.ola.core.common.Exception.ServiceException;
import vip.ola.core.common.constant.MchConstant;
import vip.ola.core.common.constant.RetEnum;
import vip.ola.core.entity.AgentSettDailyCollect;
import vip.ola.core.service.IAgentAccountService;
import vip.ola.core.service.IAgentSettDailyCollectService;
import vip.ola.core.service.IMchAccountHistoryService;
import vip.ola.service.dao.mapper.AgentSettDailyCollectMapper;

/**
 * @author: dingzhiwei
 * @date: 18/05/08
 * @description: 代理商结算汇总
 */
@Service(interfaceName = "vip.ola.core.service.IAgentSettDailyCollectService", version = "1.0.0", retries = -1)
public class AgentSettDailyCollectServiceImpl implements IAgentSettDailyCollectService {

    @Autowired
    private AgentSettDailyCollectMapper agentSettDailyCollectMapper;

    @Autowired
    private IMchAccountHistoryService mchAccountHistoryService;

    @Autowired
    private IAgentAccountService agentAccountService;

    @Override
    public int add(AgentSettDailyCollect record) {
        return agentSettDailyCollectMapper.insertSelective(record);
    }

}
